-- GENERATED SPELL FOR [Kodo Matriarch] --


function spell0_2974(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_2974', 528, 1)
end

function Sorts_2974(pUnit, Event)
local choix_sorts_2974 = math.random(0, 0)
if choix_sorts_2974 == 0 then
pUnit:RegisterEvent('spell0_2974', 1, 1)
end
end

function mob2974_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2974', math.random(1500, 3000), 1)
end

function mob2974_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2974_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2974_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2974, 1, 'mob2974_Action')
RegisterUnitEvent(2974, 2, 'mob2974_Leave')
RegisterUnitEvent(2974, 3, 'mob2974_Kill')
RegisterUnitEvent(2974, 4, 'mob2974_Die')
